import asyncio
import time


async def test1():
    for i in range(3):
        print('---test1---1')
        await asyncio.sleep(1)
        time.sleep(1)
        print('---test1---2')


async def test2():
    for i in range(5):
        print('---test2---1')
        await asyncio.sleep(1)
        print('---test2---2')


async def main():
    await asyncio.gather(test1(), test2())


if __name__ == '__main__':
    asyncio.run(main())